package cn.chengpengper.rpc.protocol.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author chengpeng.hu
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class RpcMessage implements Serializable {

    private static final long serialVersionUID = 1537364361094084938L;
    /**
     * 是否单向发送
     */
    private boolean oneway;

    /**
     * 是否异步调用
     */
    private boolean async;

}
